<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <?php  if(!isset($ids)){ ?>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Exam_id')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-exam_id" data-rule="required" data-source="exam/index" class="form-control selectpage" name="row[exam_id]" type="text" value="">
            </div>
        </div>
    <?php } else{?>
        <input type="hidden" value="{$ids}" name="row[exam_id]">
    <?php }?>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('No')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-no" class="form-control" name="row[no]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Question')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-question" class="form-control" name="row[question]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-A" class="form-control" name="row[A]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-B" class="form-control" name="row[B]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-C" class="form-control" name="row[C]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-D" class="form-control" name="row[D]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('E')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-E" class="form-control" name="row[E]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-F" class="form-control" name="row[F]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rightlist')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-rightlist" class="form-control selectpicker" multiple="" name="row[rightlist][]">
                {foreach name="rightlistList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Answer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-answer" class="form-control " rows="5" name="row[answer]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
